package Netzwerkprogrammierung.g1.RMI;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class RMIClient {

	public static void main(String[] args) throws RemoteException, MalformedURLException, NotBoundException {
		
		Registry registry = LocateRegistry.getRegistry();
		
		RMIRemoteInterface multiply = (RMIRemoteInterface)Naming.lookup("//127.0.0.1/Multiplyer");
		
		System.out.println(multiply.multiply(2, 5));
	}

}
